/**
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2024. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*!
 * \file ffn_high_performence.h
 * \brief
 */
#ifndef ASCENDC_FFN_HIGH_PERFORMENCE_H_
#define ASCENDC_FFN_HIGH_PERFORMENCE_H_

#include "ffn_base.h"

namespace FFN {
template <typename T, class mm1Type, class mm2Type = mm1Type, typename c1T = T, typename c2T = c1T, typename BiasT = T>
class FFNHighPerformence : public FFNBase<T, mm1Type, mm2Type, c1T, c2T, BiasT> {
 public:
    __aicore__ inline FFNHighPerformence(typename mm1Type::MT& mm1_, typename mm2Type::MT& mm2_)
        : FFNBase<T, mm1Type, mm2Type, c1T, c2T, BiasT>(mm1_, mm2_) {}

    /** @brief main entry function.
    */
    __aicore__ inline void Process() {
        if (unlikely(this->ProcessZeroN1())) {
            return;
        }

        this->ProcessNormal();
    }
};

}  // namespace FFN

#endif  // ASCENDC_FFN_HIGH_PERFORMENCE_H_